home *** CD-ROM | disk | FTP | other *** search
/ Iron Maiden - Maiden Hell! / Iron Maiden - Maiden Hell! Promotional CD-ROM.iso / mac / promo.dxr / scripts_1_movie scripts = .ls < prev    next >
Encoding:
Text File  |  1998-09-16  |  6.8 KB  |  268 lines

  1. on startMovie
  2.   global gSectionList, gWhichAlbumNumber, gCDtrackplaying, gTrackGuessed, gWhereWeveGone, gOriginalSoundLevel, gOriginalColourDepth
  3.   set the sound of member "thunderMOV" to 0
  4.   set gOriginalSoundLevel to the soundLevel
  5.   set the soundLevel to 4
  6.   set gOriginalColourDepth to the colorDepth
  7.   if the colorDepth < 16 then
  8.     set the colorDepth to 16
  9.   end if
  10.   set gWhichAlbumNumber to 12
  11.   set gSectionList to ["video", "album", "band", "tour", "audio", "competition", "catalogue", "eddie"]
  12.   set the fileName of member "vid1" to "@:media:fear.mov"
  13.   set the fileName of member "thunderMOV" to "@:media:thunder.mov"
  14.   set the fileName of member "bomb" to "@:media:Bomb2.mov"
  15.   set the fileName of member "morph" to "@:media:Morph.mov"
  16.   set gCDtrackplaying to 1
  17.   set gTrackGuessed to 1
  18.   set gWhereWeveGone to "menu"
  19.   set the exitLock to 1
  20.   set the keyDownScript to "checkExit"
  21.   allSeeing()
  22. end
  23.  
  24. on checkExit
  25.   if ((the commandDown and ((the key = ".") or (the key = "q"))) or (charToNum(the key) = 27)) and (the exitLock = 1) then
  26.     allSeeing()
  27.     go("quitThisEcd")
  28.   end if
  29. end
  30.  
  31. on stopMovie
  32.   global gCD, gOriginalSoundLevel, gOriginalColourDepth
  33.   if gCD <> VOID then
  34.     shutDown(gCD)
  35.     set gCD to 0
  36.   end if
  37.   set the soundLevel to gOriginalSoundLevel
  38.   set the colorDepth to gOriginalColourDepth
  39. end
  40.  
  41. on checkIfCDPlayerOpen
  42.   global gCDtrackplaying, gCD
  43.   set gCD to new(xtra("CDPro"))
  44.   if NumTracks(gCD) < 1 then
  45.     go("quitCDplayer")
  46.   end if
  47.   if gCD <> VOID then
  48.     shutDown(gCD)
  49.     set gCD to 0
  50.   end if
  51. end
  52.  
  53. on newfilesFolder
  54.   set fileList to []
  55.   repeat with i = 1 to the maxinteger
  56.     set n to getNthFileNameInFolder("@:newfiles", i)
  57.     if n = EMPTY then
  58.       exit repeat
  59.     end if
  60.     append(fileList, n)
  61.   end repeat
  62.   return fileList
  63. end
  64.  
  65. on sortOutTheImageSizes whichBitOfScreen
  66.   global someVariable
  67.   set someVariable to whichBitOfScreen
  68.   repeat with y = 8 down to 1
  69.     set the visible of sprite (y + 10) to 1
  70.     set the width of sprite (y + 10) to the width of member the member of sprite (y + 10) * ((the mouseV - 240) / 25.0) / (9 - y)
  71.     set the height of sprite (y + 10) to the height of member the member of sprite (y + 10) * ((the mouseV - 240) / 25.0) / (9 - y)
  72.   end repeat
  73.   repeat with y = 8 down to 9 - whichBitOfScreen
  74.     set the visible of sprite (y + 10) to 0
  75.   end repeat
  76.   updateStage()
  77. end
  78.  
  79. on openUpWindow theMovie, thisRect
  80.   global newWindow, RthereNEwindows
  81.   set newWindow to window theMovie
  82.   set RthereNEwindows to 1
  83.   set the rect of newWindow to value(thisRect)
  84.   set the windowType of newWindow to 16
  85.   cursor(0)
  86.   open(newWindow)
  87.   set the rect of newWindow to value(thisRect)
  88. end
  89.  
  90. on doVideoPosn
  91.   global gVideoDuration
  92.   set whereNow to the left of sprite 23 + (float(float(the movieTime of sprite 7) / gVideoDuration) * the width of sprite 23)
  93.   set the locH of sprite 25 to whereNow
  94. end
  95.  
  96. on doBabyVideo
  97.   set vidMember to the member of sprite 7
  98.   set vidTime to the mtime of sprite(7)
  99.   go(marker(0))
  100.   set the visible of sprite 7 to 0
  101.   set the locH of sprite 7 to -800
  102.   updateStage()
  103.   go(the frame + 1)
  104.   set the member of sprite 7 to vidMember
  105.   updateStage()
  106.   set the member of sprite 41 to "vidSize0"
  107.   set the width of sprite 7 to 320
  108.   set the height of sprite 7 to 240
  109.   set the loc of sprite 7 to point(231, 249)
  110.   set the mtime of sprite(7) to vidTime
  111.   set the visible of sprite 7 to 1
  112.   if the height of member the member of sprite 11 > the height of sprite 3 then
  113.     set the visible of sprite 4 to 1
  114.     set the visible of sprite 5 to 1
  115.   end if
  116. end
  117.  
  118. on doMummyVideo
  119.   set vidMember to the member of sprite 7
  120.   set vidTime to the mtime of sprite(7)
  121.   go(marker(0))
  122.   set the visible of sprite 7 to 0
  123.   set the locH of sprite 7 to -800
  124.   set the visible of sprite 4 to 0
  125.   set the visible of sprite 5 to 0
  126.   updateStage()
  127.   go(the frame + 1)
  128.   set the member of sprite 7 to vidMember
  129.   updateStage()
  130.   set the member of sprite 41 to "vidSize1"
  131.   set the width of sprite 7 to 640
  132.   set the height of sprite 7 to 480
  133.   set the loc of sprite 7 to point(397, 265)
  134.   set the mtime of sprite(7) to vidTime
  135.   set the visible of sprite 7 to 1
  136. end
  137.  
  138. on alUpdate
  139. end
  140.  
  141. on allSeeing
  142.   repeat with y = 1 to 65
  143.     set the visible of sprite y to 1
  144.   end repeat
  145. end
  146.  
  147. on cleanUpMenuSection
  148. end
  149.  
  150. on setUpVideoSection
  151.   global gVideoDuration, gVideoSize
  152.   sound stop 1
  153.   set the visible of sprite 7 to 1
  154.   set gVideoDuration to the duration of member "vid1"
  155.   set gVideoSize to 0
  156. end
  157.  
  158. on CleanUpVideoSection
  159.   set the visible of sprite 7 to 0
  160.   updateStage()
  161.   go(the frame + 1)
  162.   set the visible of sprite 7 to 1
  163. end
  164.  
  165. on setUpAlbumSection
  166.   set the visible of sprite 7 to 1
  167.   set the constraint of sprite 25 to 23
  168. end
  169.  
  170. on CleanUpAlbumSection
  171. end
  172.  
  173. on setUpBandSection
  174.   global gBandPictureNumber
  175.   set the visible of sprite 7 to 1
  176.   set gBandPictureNumber to 1
  177.   startTimer()
  178.   set the visible of sprite 4 to 1
  179.   set the visible of sprite 5 to 1
  180. end
  181.  
  182. on CleanUpBandSection
  183. end
  184.  
  185. on setUpTourSection
  186.   global gTourPictureNumber
  187.   set the visible of sprite 7 to 1
  188.   set gTourPictureNumber to 1
  189.   startTimer()
  190.   set the visible of sprite 4 to 1
  191.   set the visible of sprite 5 to 1
  192. end
  193.  
  194. on CleanUpTourSection
  195. end
  196.  
  197. on setUpAudioSection
  198.   global gCDtrackplaying, gCD, gHowManyTracksOnAlbum, gTempSoundlevel
  199.   set the visible of sprite 7 to 1
  200.   set gCD to new(xtra("CDPro"))
  201.   set gHowManyTracksOnAlbum to NumTracks(gCD)
  202.   set gCDtrackplaying to 1
  203.   set the member of sprite (gCDtrackplaying + 5) to "audiosong" & string(gCDtrackplaying) & "r"
  204.   set the constraint of sprite 28 to 27
  205.   SetVolume(gCD, 80)
  206.   set gTempSoundlevel to the soundLevel
  207. end
  208.  
  209. on CleanUpAudioSection
  210.   global gCDtrackplaying, gCD, gHowManyTracksOnAlbum, gTempSoundlevel
  211.   stop(gCD)
  212.   repeat with trakk = 5 to 5 + gHowManyTracksOnAlbum
  213.     puppetSprite(trakk, 0)
  214.   end repeat
  215.   if gCD <> VOID then
  216.     shutDown(gCD)
  217.     set gCD to 0
  218.   end if
  219.   set the soundLevel to gTempSoundlevel
  220. end
  221.  
  222. on setUpcompetitionSection
  223.   puppetSprite(1, 1)
  224.   set the visible of sprite 7 to 1
  225. end
  226.  
  227. on CleanUpCompetitionSection
  228.   sound stop 1
  229.   sound stop 2
  230. end
  231.  
  232. on setUpCatalogueSection
  233.   set the visible of sprite 7 to 1
  234.   repeat with x = 1 to 11
  235.     preloadMember("catspin" & string(x))
  236.   end repeat
  237.   repeat with x = 1 to 11
  238.     preloadMember("subspin" & string(x))
  239.   end repeat
  240. end
  241.  
  242. on cleanUpCatalogueSection
  243.   set the visible of sprite 7 to 0
  244.   updateStage()
  245.   if the frameLabel = "cat" then
  246.     go(the frame + 1)
  247.   end if
  248.   set the visible of sprite 7 to 1
  249.   sound stop 1
  250.   repeat with x = 1 to 11
  251.     unloadMember("catspin" & string(x))
  252.   end repeat
  253.   repeat with x = 1 to 11
  254.     unloadMember("subspin" & string(x))
  255.   end repeat
  256. end
  257.  
  258. on setUpEddieSection
  259.   global gCD, gSongWereGuessing, gHowManyTracksOnAlbum
  260.   set gHowManyTracksOnAlbum to 12
  261.   set gSongWereGuessing to random(gHowManyTracksOnAlbum)
  262.   set the visible of sprite 7 to 1
  263. end
  264.  
  265. on cleanUpEddieSection
  266.   global gCD
  267. end
  268.